﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GoodsInfo.aspx.cs" Inherits="Mall.GoodsInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>商品</title>
    <style type="text/css">
         #GoodForm 
        {
            width: 400px;
            margin: auto;
            border: 1px solid black;
            text-align: center;
            font-size: 20px;
        }
    </style>
</head>
<body style="text-align: center">
    <%
        if (Session["Username"] != null)
        {
     %>
    <h1 style="color: Red; margin-top: 50px">欢迎<%=Session["Username"] != null ? Session["Username"].ToString() : ""%>，进入XX商城</h1><br />
    <%
        }
        else
        {
     %>
     <h1 style="color: Red; margin-top: 50px">XX商城，欢迎你</h1><br />
     <%
        }
     %>
    <form id="GoodForm" runat="server">
    <div style="margin-top: 10px; ">
        <asp:Label ID="Label10" runat="server" Text="商&nbsp;品&nbsp;信&nbsp;息" style="color: Red; font-size: 24px;" Visible="False"></asp:Label>
        <asp:Label ID="Label9" runat="server" Text="商&nbsp;品&nbsp;编&nbsp;辑" style="color: Red; font-size: 24px;" Visible="False"></asp:Label>
        <asp:Label ID="Label1" runat="server" Text="商&amp;nbsp;品&amp;nbsp;添&amp;nbsp;加" 
            style="color: Red; font-size: 24px;"></asp:Label><br />
    </div>
    <div style="margin-top: 10px; margin-bottom: 20px">
        <asp:Panel ID="GoodsInfoCreatePanel" runat="server" >
            <asp:Label ID="Label2" runat="server" Text="名称："></asp:Label>
            <asp:TextBox ID="TextBox1" runat="server" ></asp:TextBox>
            <asp:Label ID="Label3" runat="server" Text="价格：" style="margin-left: 30px"></asp:Label>
            <asp:TextBox ID="TextBox2" runat="server" style="width: 50px;" ></asp:TextBox><br />
            <asp:Label ID="Label4" runat="server" Text="图片上传："></asp:Label>
            <asp:FileUpload ID="FileUpload1" runat="server" style="background-color: White" /><br /><br />
            <asp:Button ID="Button1" runat="server" Text="上 传" 
                style="font-size: 18px; width: 80px; background-color: White" 
                onclick="Button1_Click" />
            <asp:Button ID="Button2" runat="server" Text="返 回" 
                style="font-size: 18px; width: 80px; margin-left: 50px; background-color: White" 
                onclick="Button2_Click" />
        </asp:Panel>
        <asp:Panel ID="GoodsInfoEditPanel" runat="server" Font-Size="18px"  Visible="False">
            <asp:Label ID="Label13" runat="server" Text="暂存ID" Visible="false"></asp:Label>
            <asp:Label ID="Label5" runat="server" Text="名称："></asp:Label>
            <asp:TextBox ID="TextBox3" runat="server" ></asp:TextBox>
            <asp:Label ID="Label6" runat="server" Text="价格：" style="margin-left: 30px"></asp:Label>
            <asp:TextBox ID="TextBox4" runat="server" style="width: 50px;" ></asp:TextBox><br />
            <asp:Label ID="Label7" runat="server" Text="图片上传："></asp:Label>
            <asp:FileUpload ID="FileUpload2" runat="server" style="background-color: White" /><br /><br />
            <asp:Label ID="Label8" runat="server" Text="图片展示："></asp:Label>
            <asp:Image ID="Image1" runat="server" Width="150px" Height="120px" /><br /><br />
            <asp:Button ID="Button3" runat="server" Text="确 定" 
                style="font-size: 18px; width: 80px; background-color: White" 
                onclick="Button3_Click" />
            <asp:Button ID="Button4" runat="server" Text="放 弃" 
                style="font-size: 18px; width: 80px; margin-left: 50px; background-color: White" 
                onclick="Button4_Click" />
        </asp:Panel>
        <asp:Panel ID="GoodsInfoSelectPanel" runat="server" Font-Size="18px"  Visible="False">
            <asp:Label ID="Label11" runat="server" Text="名称："></asp:Label>
            <asp:TextBox ID="TextBox5" runat="server" Enabled="False"></asp:TextBox>
            <asp:Label ID="Label12" runat="server" Text="价格：" style="margin-left: 30px"></asp:Label>
            <asp:TextBox ID="TextBox6" runat="server" style="width: 50px;" Enabled="False"></asp:TextBox><br />
            <asp:Label ID="Label14" runat="server" Text="图片展示："></asp:Label>
            <asp:Image ID="Image2" runat="server" Width="150px" Height="120px" /><br /><br />
            <asp:Button ID="Button6" runat="server" Text="返 回" 
                style="font-size: 18px; width: 80px; background-color: White" 
                onclick="Button6_Click" />
        </asp:Panel>
    </div>
    </form>
</body>
</html>
